package wnxy.wn44.mapper;

import org.apache.ibatis.annotations.Param;
import wnxy.wn44.model.Poetry;
import wnxy.wn44.service.bo.PoetryQueryParam;

import java.util.List;

public interface PoetryMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Poetry record);

    int insertSelective(Poetry record);

    Poetry selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Poetry record);

    int updateByPrimaryKey(Poetry record);

    List<Poetry> selectAll();


    List<Poetry> selectAllByCondition(@Param("queryParam") PoetryQueryParam queryParam);

    int delById(@Param("ids") List<Integer> id);

}